/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * QuanLyTuyenDuong.java
 *
 * Created on Oct 29, 2012, 10:16:33 PM
 */
package Panel;

import DAO.TuyenDuongDAO;
import OBJECT.TuyenDuong;
import java.util.Iterator;
import java.util.List;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author ngayngo9x
 */
public class QuanLyTuyenDuong extends javax.swing.JPanel {
    private static String themThanhCong = "Thêm tuyến đường thành công";
    private static String suaThanhCong = "Sửa tuyến đường thành công";
    private static String khongThanhCong = "Không thành công rồi";
    private static String xoaThanhCong = "Xóa tuyến đường thành công";
    DefaultTableModel tableModel;
    private int flagCapNhat;
    private String m_User;
    private String m_Pass;
    private String m_Port;
    private String m_Data;
    private String m_Host;
    private int m_maTuyenDuong;
    /** Creates new form QuanLyTuyenDuong */
    public QuanLyTuyenDuong(String User ,String Pass,String port,String DataBase,String Host) {
        initComponents();
        this.AnThongTinTuyenDuong();
        this.m_User = User;
        this.m_Pass = Pass;
        this.m_Port = port;
        this.m_Data = DataBase;
        this.m_Host = Host;
        this.KhoiTao(User, Pass, port, DataBase, Host);
    }
    
    private void KhoiTao(String User ,String Pass,String port,String DataBase,String Host) {
        this.LoadTable(User, Pass, port, DataBase, Host);
        cboTrangThai.removeAllItems();
        cboTrangThai.addItem("Sử dụng được");
        cboTrangThai.addItem("Không sử dụng được");
    }
    
    private void LoadTable(String User ,String Pass,String port,String DataBase,String Host) {
        tableModel = new DefaultTableModel();
        tableModel.addColumn("Mã Tuyến Đường");
        tableModel.addColumn("Tên Tuyến Đường");
        tableModel.addColumn("Ga bắt đầu");
        tableModel.addColumn("Ga kết thúc");
        tableModel.addColumn("Tổng Km");
        tableModel.addColumn("Tình trạng");
        TuyenDuongDAO tuyenDuongDAO = new TuyenDuongDAO(User, Pass, port, DataBase, Host);
        List<TuyenDuong> dsTuyen = tuyenDuongDAO.LayDanhSachTuyenDuong();
        Iterator<TuyenDuong> iTuyen = dsTuyen.iterator();
        while(iTuyen.hasNext()) {
            Object[] data = new Object[6];
            TuyenDuong t = iTuyen.next();
            data[0] = t.getMaTuyenDuong();
            data[1] = t.getTenTuyenDuong();
            data[2] = t.getGaXuatPhat();
            //System.out.print(t.getGaXuatPhat());
            data[3] = t.getGaCuoiCung();
            data[4] = t.getTongKM();
            data[5] = t.getTinhTrang();
            tableModel.addRow(data);
        }
        dsTuyenDuongTbl.setModel(tableModel);
        tuyenDuongDAO.CloseConnect();
    }
    
    private void AnThongTinTuyenDuong() {
        jPanel3.setVisible(false);
    }

    private void HienThongTinTuyenDuong() {
        jPanel3.setVisible(true);
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        dsTuyenDuongTbl = new javax.swing.JTable();
        jPanel2 = new javax.swing.JPanel();
        themBtn = new javax.swing.JButton();
        xoaBtn = new javax.swing.JButton();
        suaBtn = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        txtTenTuyenDuong = new javax.swing.JTextField();
        txtGaBatDau = new javax.swing.JTextField();
        txtTongKm = new javax.swing.JTextField();
        txtGaCuoiCung = new javax.swing.JTextField();
        cboTrangThai = new javax.swing.JComboBox();
        btnDongY = new javax.swing.JButton();
        btnNhapLai = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Danh sách tuyến đường"));

        dsTuyenDuongTbl.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null}
            },
            new String [] {
                "Mã", "Tên", "Ga đầu", "Ga cuối", "Tổng KM", "Tình trạng"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.Float.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(dsTuyenDuongTbl);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 285, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        themBtn.setText("Thêm Tuyến Đường");
        themBtn.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                themBtnActionPerformed(evt);
            }
        });

        xoaBtn.setText("Xóa Tuyến Đường");
        xoaBtn.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                xoaBtnActionPerformed(evt);
            }
        });

        suaBtn.setText("Sửa Tuyến Đường");
        suaBtn.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                suaBtnActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 375, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
                        .addGap(39, 39, 39)
                        .addComponent(themBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(xoaBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(suaBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(54, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(suaBtn)
                    .addComponent(xoaBtn)
                    .addComponent(themBtn))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, 26, Short.MAX_VALUE)
                .addContainerGap())
        );

        jLabel2.setText("Tên Tuyến Đường");

        jLabel3.setText("Ga bắt đầu");

        jLabel4.setText("Ga cuối cùng");

        jLabel5.setText("Tổng Km");

        jLabel6.setText("Trạng thái");

        cboTrangThai.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        btnDongY.setText("Đồng ý");
        btnDongY.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDongYActionPerformed(evt);
            }
        });

        btnNhapLai.setText("Nhập lại");
        btnNhapLai.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNhapLaiActionPerformed(evt);
            }
        });

        jLabel1.setForeground(new java.awt.Color(255, 0, 51));

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addContainerGap(101, Short.MAX_VALUE)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel2)
                            .addComponent(jLabel3)
                            .addComponent(jLabel4)
                            .addComponent(jLabel5)
                            .addComponent(jLabel6))
                        .addGap(29, 29, 29)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtGaCuoiCung)
                            .addComponent(txtGaBatDau)
                            .addComponent(txtTenTuyenDuong, javax.swing.GroupLayout.DEFAULT_SIZE, 182, Short.MAX_VALUE)
                            .addComponent(txtTongKm)
                            .addComponent(cboTrangThai, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(194, 194, 194)
                        .addComponent(btnDongY)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnNhapLai)))
                .addContainerGap(380, Short.MAX_VALUE))
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(208, 208, 208)
                .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE)
                .addGap(418, 418, 418))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtTenTuyenDuong, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel2))
                .addGap(8, 8, 8)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtGaBatDau, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel4)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(txtGaCuoiCung, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtTongKm, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel5))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cboTrangThai, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnNhapLai)
                    .addComponent(btnDongY))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 8, Short.MAX_VALUE)
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 167, Short.MAX_VALUE)
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 403, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createSequentialGroup()
                                .addContainerGap()
                                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(11, 11, 11)
                        .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel1.getAccessibleContext().setAccessibleName("Danh sách");
    }// </editor-fold>//GEN-END:initComponents

    private void themBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_themBtnActionPerformed
        jLabel7.setText("Thêm Tuyến Đường");
        this.HienThongTinTuyenDuong();
        txtTenTuyenDuong.setText("");
        txtGaBatDau.setText("");
        txtGaCuoiCung.setText("");
        txtTongKm.setText("");
        cboTrangThai.setSelectedIndex(0);
        flagCapNhat = 1;
    }//GEN-LAST:event_themBtnActionPerformed

    private void btnNhapLaiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNhapLaiActionPerformed
        this.LayDuLieuVuaChon();
    }//GEN-LAST:event_btnNhapLaiActionPerformed

    private void btnDongYActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDongYActionPerformed
        String ten = txtTenTuyenDuong.getText();
        String gabd = txtGaBatDau.getText();
        String gakt = txtGaCuoiCung.getText();
        float km = Float.parseFloat(txtTongKm.getText().toString());
        int trangThai = cboTrangThai.getSelectedIndex();
        //trangThai++;
        TuyenDuongDAO td = new TuyenDuongDAO(this.m_User, this.m_Pass, this.m_Port, this.m_Data, this.m_Host);
        int flagLoi = 0;
        if(flagCapNhat == 1) {
            flagLoi = td.ThemTuyenDuong(ten, gabd, gakt, km, trangThai + "");
            if(flagLoi == 1) {
                jLabel1.setText(themThanhCong);
                this.LoadTable(this.m_User, this.m_Pass, this.m_Port, this.m_Data, this.m_Host);
            } else {
                jLabel1.setText(khongThanhCong);
            }
        } else if(flagCapNhat == 2) {
            flagLoi = td.SuaTuyenDuong(this.m_maTuyenDuong, ten, gabd, gakt, km, trangThai + "");
            if(flagLoi == 1) {
                jLabel1.setText(suaThanhCong);
                this.LoadTable(this.m_User, this.m_Pass, this.m_Port, this.m_Data, this.m_Host);
            } else {
                jLabel1.setText(khongThanhCong);
            }
        } 
        td.CloseConnect();
    }//GEN-LAST:event_btnDongYActionPerformed

    private void LayDuLieuVuaChon() {
        int row = dsTuyenDuongTbl.getSelectedRow();
        if(dsTuyenDuongTbl.getSelectedRowCount() > 0) {
            int maTuyenDuong = Integer.parseInt(dsTuyenDuongTbl.getModel().getValueAt(row, 0).toString());
            this.m_maTuyenDuong = maTuyenDuong;
            txtTenTuyenDuong.setText(dsTuyenDuongTbl.getModel().getValueAt(row, 1).toString());
            txtGaBatDau.setText(dsTuyenDuongTbl.getModel().getValueAt(row, 2).toString());
            txtGaCuoiCung.setText(dsTuyenDuongTbl.getModel().getValueAt(row, 3).toString());
            txtTongKm.setText(dsTuyenDuongTbl.getModel().getValueAt(row, 4).toString());
            cboTrangThai.setSelectedIndex((Integer.parseInt(dsTuyenDuongTbl.getModel().getValueAt(row, 5).toString()))); 
        } else {
            jLabel7.setText("Chọn một tuyến đường trong danh sách trước");
        }
    }
    
    private void suaBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_suaBtnActionPerformed
        jLabel7.setText("Sửa Tuyến Đường");
        this.HienThongTinTuyenDuong();
        this.LayDuLieuVuaChon();
        flagCapNhat = 2;
    }//GEN-LAST:event_suaBtnActionPerformed

    private void xoaBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_xoaBtnActionPerformed
        jLabel7.setText("Xóa Tuyến Đường");
        this.HienThongTinTuyenDuong();
        this.LayDuLieuVuaChon();
        TuyenDuongDAO td = new TuyenDuongDAO(this.m_User, this.m_Pass, this.m_Port, this.m_Data, this.m_Host);
        int flagLoi = 0; 
        flagLoi = td.XoaTuyenDuong(this.m_maTuyenDuong);
        if(flagLoi == 1) {
            jLabel1.setText(xoaThanhCong);
            this.LoadTable(this.m_User, this.m_Pass, this.m_Port, this.m_Data, this.m_Host);
        } else {
            jLabel1.setText(khongThanhCong);
        }
        td.CloseConnect();
    }//GEN-LAST:event_xoaBtnActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnDongY;
    private javax.swing.JButton btnNhapLai;
    private javax.swing.JComboBox cboTrangThai;
    private javax.swing.JTable dsTuyenDuongTbl;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JButton suaBtn;
    private javax.swing.JButton themBtn;
    private javax.swing.JTextField txtGaBatDau;
    private javax.swing.JTextField txtGaCuoiCung;
    private javax.swing.JTextField txtTenTuyenDuong;
    private javax.swing.JTextField txtTongKm;
    private javax.swing.JButton xoaBtn;
    // End of variables declaration//GEN-END:variables
}
